package structural.decorator;

public class DiamondDecorator implements Equipment {
    private Equipment equip;

    DiamondDecorator(Equipment equipment) {
        this.equip = equipment;
    }

    @Override
    public int power() {
        return this.equip.power() + 5;
    }

    @Override
    public String desc() {
        return this.equip.desc() + " +5攻击力版本";
    }

    @Override
    public String toString() {
        return "攻击力：" + power() + " 描述：" + desc();
    }
}
